# Author: Lovy
# File : config
# Time : 2023-02-16 18:44
"""1280x720"""
# 主界面
mainUI = {
    "maps": [16, 23, 64, 64],
    "maps_location": [89, 32, 201, 55],  # 天墉城 98, 31, 187, 55
    "main_patrol_loc": [245, 52, 286, 69],  # 巡逻
    # "main_shuadao_loc": [480, 80, 551, 110],    #刷道
    "main_shuadao_loc": [322, 51, 365, 67],
    # "main_task_loc": [596, 76, 667, 109],       #活动
    "main_task_loc": [399, 50, 442, 66],
    "main_line_loc": [117, 61, 167, 83],  # 线路
    "main_pet_loc": [1009, 6, 1061, 49],  # 宠物位置
    "main_man_loc": [1145, 5, 1205, 60],  # 人物位置
    "main_shoppingMall_loc": [21, 190, 61, 221],  # 商城
    "main_trade_loc": [25, 268, 62, 302],  # 交易
    "main_welfare_loc": [19, 340, 61, 379],  # 福利
    "main_friends_loc": [22, 524, 50, 567],  # 好友
    # "main_team_loc": [1176, 119, 1256, 147],  # 组队
    "右侧三角标记": [1241, 114, 1279, 154],
    "main_task_right_loc": {
        "loc": [1058, 120, 1155, 149],
        "loc_task": [1060, 118, 1145, 150],  # 1058, 120, 1155, 149
        "loc_team": [1180, 120, 1265, 148],  # 组队
        "select": [(1064, 123), "#DEC7A5"],  # 选中
        "not_select": [(1064, 123), "#AD967B"],  # 未选中
        "task_list": [
            (1053, 165, 1244, 165 + 29),
            (1053, 246, 1244, 246 + 29),
            (1053, 330, 1244, 330 + 29),
        ],  # 任务列表
        "叉号": [1076, 24, 1110, 59],
    },  # 任务
    "main_team_loc": {
        "loc": [1179, 118, 1266, 150],
        "select": [(1180, 124), "#DEC7AD"],  # 选中
        "not_select": [(1180, 124), "#A5927B"],  # 未选中
        "队伍离队": [1140, 468, 1185, 494],
        "队伍列表": [1059, 468, 1107, 495],
        "队伍召集": [1219, 467, 1266, 494],
        "组队离队": [1071, 469, 1136, 494],
        "组队暂离": [1193, 468, 1251, 494],  # 暂离 归队
    },  # 组队 "#A5927B"
    "对话": {
        "name_loc": [948, 325, 1083, 354],
        "first_button": [910, 481, 1124, 517],
        "second_button": [889, 557, 1149, 587],
        "叉号": [1225, 36, 1249, 60],
    },
    "find_colors": {
        "任务栏": ["#FFF3C6", "9|-1|#CEA66B, 10|13|#CE7142, 3|12|#B58652", 1025, 91, 1278, 493],
        "任务栏2": ["#AD9A84", "21|1|#AD9A84, 14|13|#AD9A6B, 0|12|#946952, 3|13|#8C5539", 1034, 94, 1166, 160],
        "右侧三角标记": ["#D6BE9C", "0|3|#D6BEA5, 9|1|#C6A673, 9|2|#C6A67B", 1241, 114, 1279, 154],
        "地图": ["#9C968C", "12|8|#B5A673, 0|18|#DECB9C, 28|28|#C6BA94, 25|45|#C6C3BD", 9, 8, 71, 67],
        "人物对话叉号": ["#C69A6B", "0|-7|#E7DFCE, 12|2|#BD9A6B, 9|7|#B59263", 1181, 6, 1271, 79],
    },
    "find_image": {
        # 21, 284, 63, 304 图片的宽高
        "地图名": ["mainUI/天墉城.png", (95, 26, 201, 61)],  # 不一定是天墉城，也可以是其他的地图
        "巡逻": ["mainUI/巡逻1.png", (229, 5, 302, 96)],
        "刷道": ["mainUI/刷道.png", (309, 4, 379, 85)],
        "活动": ["mainUI/活动.png", (388, 9, 458, 78)],
        "商城": ["mainUI/商城.png", (0, 161, 86, 236)],
        "交易": ["mainUI/交易.png", (9, 242, 84, 312)],
        "福利": ["mainUI/福利.png", (5, 309, 80, 387)],
        "好友": ["mainUI/好友.png", (0, 496, 143, 577)],
        "对话": ["mainUI/对话.png", (0, 496, 143, 577)],
        "组队": ["mainUI/组队_未选中.png", (1043, 102, 1278, 156)],  # 选中与为选中效果一样
        "任务": ["mainUI/任务_选中.png", (1043, 102, 1278, 156)],
        "背包": ["mainUI/背包.png", (1202, 533, 1276, 717)],
        "展开": ["mainUI/展开.png", (1202, 533, 1276, 717)],
        "九幽": ["mainUI/九幽.png", (61, 92, 222, 166)],
        "荣耀": ["mainUI/荣耀.png", (61, 92, 222, 166)],
        "名人堂": ["mainUI/名人堂.png", (78, 83, 316, 173)],  # (151, 92, 237, 167)],
        "洛书": ["mainUI/洛书.png", (800, 623, 1267, 710)],
        "洛书领取": ["mainUI/洛书_领取.png", (947, 570, 1114, 643)],
        "洛书退出": ["mainUI/洛书_退出.png", (1109, 74, 1168, 128)],
        "守护": ["mainUI/守护.png", (800, 623, 1267, 710)],
        "居所": ["mainUI//居所.png", (800, 623, 1267, 710)],
        "打造": ["mainUI/打造.png", (800, 623, 1267, 710)],
        "帮派": ["mainUI/帮派.png", (800, 623, 1267, 710)],
        "帮派领取": ["mainUI/帮派_领取.png", (911, 79, 1079, 295)],
        "帮派退出": ["mainUI/帮派_退出.png", (1028, 0, 1127, 83)],
        "更多": ["mainUI/更多.png", (800, 623, 1267, 710)],
        "队伍召集": ["mainUI/队伍_召集.png", (1045, 455, 1270, 504)],
        "队伍离队": ["mainUI/队伍_离队.png", (1045, 455, 1270, 504)],
        "队伍列表": ["mainUI/队伍_列表.png", (1045, 455, 1270, 504)],
        "组队离队": ["mainUI/组队_离队.png", (1045, 455, 1270, 504)],
        "组队暂离": ["mainUI/组队_暂离.png", (1045, 455, 1270, 504)],
        "组队归队": ["mainUI/组队_归队.png", (1045, 455, 1270, 504)],
    },
}

# 副本
task_fuben = {
    "battle_auto": [1198, 664, 1250, 687],  # 自动战斗
    "task_name": [1051, 164, 1189, 197],  # 任务栏 ocr任务名称
    "task_loc": [1061, 224, 1204, 271],  # [1060, 222, 1253, 275],
    "35级": {
        "创建": [280, 565, 371, 599],
    },
    "75级": {
        "创建": [590, 565, 683, 597],
    },
    "90级": {
        "创建": [901, 565, 987, 598],
    },
    "find_color": {
        "人物对话叉号": ["#C69A6B", "0|-7|#E7DFCE, 12|2|#BD9A6B, 9|7|#B59263", 1181, 6, 1271, 79],
    },
    "对话": {
        "name_loc": [948, 325, 1083, 354],
        "first_button": [910, 481, 1124, 517],
        "second_button": [889, 557, 1149, 587],
        "叉号": [1225, 36, 1249, 60],
    },
}

# 剧情
fuben_texts = {
    "陈塘关": [
        ("渔民 天灾人祸", 1, 0, 0),
        ("夜叉 驱逐", 1, 1, 1),
        ("哪吒 家有严父", 0, 0, 1),
        ("李靖 说明情况", 0, 0, 1),
        ("小翠 了解情况", 0, 0, 1),
        ("龙族长老 速战速决", 1, 1, 1),
        ("李夫人 速回陈塘关", 0, 0, 1),
        ("李靖 陈塘关大劫", 0, 0, 1),
        ("龙族长老 守卫陈塘关", 1, 1, 1),
        #####
        ("太乙真人 天命难违", 0, 0, 1),
    ],
    "兰若寺": [
        ("小红", 1, 1, 1),
        ("小倩 果然是妖怪", 0, 0, 1),
        ("采臣 你看谁来了", 0, 0, 1),
        ("赤霞 前辈有礼了", 0, 0, 1),
        ("姥姥 作恶多端，看招", 1, 1, 3),
        ("采臣 你没事吧", 1, 0, 0),
        ("赤霞 树妖已被去除", 0, 0, 1),
        ("黑山老妖 妖怪还不束手就擒", 1, 1, 1),
    ],
}

# 地图
main_maps = {
    "左上角": [18, 25, 65, 62],
    "地图名称": [109, 32, 176, 51],
    "叉号": [1123, 26, 1151, 56],
    "all_maps": {
        "天墉城": [526, 391, 596, 441],
        "无名小镇": [185, 373, 234, 403],
        "东海渔村": [1014, 199, 1058, 234],
        "骷髅山": [922, 477, 965, 518],
    },
    "天墉城": {
        "叉号": [1024, 72, 1061, 103],
    },
    "find_images": {
        "叉号": ["maps/叉号.png", (0, 0, 0, 0)],
        "骷髅山": ["maps/骷髅山.png", (332, 114, 955, 635)],
        "天墉城": ["maps/天墉城.png", (225, 86, 1051, 663)],
        "地图左上角": ["maps/地图左上角.png", (2, 0, 217, 89)],
    },
    "cancel": [1125, 29, 1150, 51],  # 叉号 不同地图叉号位置不一样？
}

# 商城
main_shoppingMall = {
    "商城": [1118, 103, 1159, 176],
    "会员": [1122, 220, 1161, 295],
    "领取": [892, 631, 1062, 669],  # 领取100元宝
    "cancel": [1065, 22, 1100, 61],  # 取消 叉号
}

# 人物
main_man = {
    "叉号": [1064, 23, 1101, 58],
    "right_column": {
        "属性": (1117, 102, 1160, 177),  # 属性
        "加点": (1124, 225, 1156, 291),  # 加点
        "魂魄": (1122, 342, 1161, 415),  # 魂魄
        "技能": (1124, 456, 1159, 535),  # 技能
    },
    "属性": {
        "气血": [676, 527, 818, 558],
        "法力": [677, 579, 809, 609],
        "忠诚": [945, 524, 1034, 556],
        "等级": [268, 642, 300, 666],
        "等级2": [222, 642, 328, 669],
        "补充储备": [
            (946, 577, 1045, 607),  #
            (813, 493, 910, 524),  # 前往药店
            (969, 495, 1076, 520),  # 前往杂货店
        ],
    },
    "技能": {
        "升级": [735, 637, 837, 668],
        "升级10次": [913, 635, 1029, 669],
        "column": {
            "一阶": [522, 185, 625, 221],  # 等级
            "二阶": [522, 250, 625, 290],
            "三阶": [522, 320, 625, 353],
            "四阶": [522, 382, 625, 417],
            "五阶": [522, 447, 625, 483],
        },
        "row": {
            "物攻": [215, 87, 311, 116],
            "法攻": [363, 86, 453, 119],
            "障碍": [513, 88, 602, 118],
            "辅助": [661, 88, 747, 116],
        },
    },
    "药店": {
        "低级血池": [219, 108, 435, 169],
        "中级血池": [528, 111, 738, 166],
        "高级血池": [219, 215, 437, 271],
        "低级灵池": [524, 209, 736, 278],
        "中级灵池": [218, 318, 440, 380],
        "高级灵池": [522, 317, 754, 386],
        "购买": [914, 625, 1034, 653],  # 920, 624, 1035, 656
        "叉号": [1074, 23, 1115, 59],
        "使用": [1061, 566, 1141, 597],
    },
}

# 宠物
main_pet = {
    "叉号": [1064, 25, 1103, 59],
    "right_loc": {
        "属性": [1125, 105, 1158, 170],
        "技能": [1122, 338, 1155, 409],
        "阳间": [216, 69, 273, 98],
    },
    "属性": {
        "寿命": [945, 418, 1041, 449],
        "寿命加号": [1059, 421, 1080, 445],
        "神兽丹加号": [982, 309, 1004, 330],
        "使用": [793, 467, 921, 498],
        "确认": [706, 426, 792, 457],
        "成长": [527, 641, 625, 672],
        "column": {
            "强化栏": [178, 248, 269, 283],
        },
        "强化丹数量": [716, 481, 846, 536],
        "强化": [985, 570, 1071, 604],
        "叉号": [1118, 68, 1147, 97],
    },
    "技能": {
        "find_color": {
            "一键开启": ["#8CD308", "3|3|#84CF00, 7|-5|#A5E739", 1002, 355, 1067, 409],
        },
        "row": {
            "天书": [907, 90, 972, 118],
        },
        "天书": {
            "名称": [(620, 186, 736, 228), (620, 242, 736, 287), (620, 300, 736, 340)],
            "灵气": [(859, 187, 976, 227), (859, 242, 976, 287), (859, 300, 976, 340)],
            "补充灵气": [944, 639, 1062, 672],
            "叉号": [915, 21, 951, 55],
            "元宝补充": [382, 624, 503, 655],
            "一键开启": [1020, 372, 1040, 390],
        },
        "元宝补充": {
            "一键补满": [498, 447, 601, 477],
            "一百元宝": [712, 448, 796, 477],
            "确认": [703, 425, 793, 458],
            "叉号": [816, 199, 852, 236],
        },
    },
}

# 巡逻栏
main_patrol = {
    "double_nums": [487, 630, 564, 658],
    # 点击
    "double_switch": [359, 629, 417, 657],  # 双倍开关
    "auto_battle": [460, 545, 582, 583],  # 人物 自动战斗技能
    "auto_pet_battle": [861, 548, 990, 582],
    "defense": [854, 337, 912, 401],  # 防御  847, 551, 992, 587
    "combination_skills": [771, 445, 812, 492],  # 组合技能
    "cancel": [1075, 21, 1113, 58],  # 叉号
    "find_image": {
        "辅助一阶": ["main_partol/辅助一阶.png", (597, 2, 1126, 587)],
        "辅助二阶": ["main_partol/辅助二阶.png", (597, 2, 1126, 587)],
        "辅助三阶": ["main_partol/辅助三阶.png", (597, 2, 1126, 587)],
        "辅助四阶": ["main_partol/辅助四阶.png", (597, 2, 1126, 587)],
        "法攻一阶": ["main_partol/法攻一阶.png", (597, 2, 1126, 587)],
        "法攻二阶": ["main_partol/法攻二阶.png", (597, 2, 1126, 587)],
        "法攻三阶": ["main_partol/法攻三阶.png", (597, 2, 1126, 587)],
        "法攻四阶": ["main_partol/法攻四阶.png", (597, 2, 1126, 587)],
        "障碍一阶": ["main_partol/障碍一阶.png", (597, 2, 1126, 587)],
        "障碍二阶": ["main_partol/障碍二阶.png", (597, 2, 1126, 587)],
        "障碍三阶": ["main_partol/障碍三阶.png", (597, 2, 1126, 587)],
        "障碍四阶": ["main_partol/障碍四阶.png", (597, 2, 1126, 587)],
        "组合技能": ["main_partol/组合技能.png", (597, 2, 1126, 587)],
        "力破千军": ["main_partol/力破千军.png", (597, 2, 1126, 587)],
        "普攻": ["main_partol/普攻.png", (597, 2, 1126, 587)],
        "防御": ["main_partol/防御.png", (597, 2, 1126, 587)],
    },
}

# 刷道栏
main_shuadao = {
    "times_nums": [884, 576, 962, 599],  # 刷道次数
    # 点击
    "first_order": [332, 475, 409, 504],  # 一阶降妖
    "second_order": [609, 479, 680, 506],  # 二阶降妖
    "token_switch": [684, 571, 743, 601],  # 刷道令开关
    "cancel": [1025, 23, 1060, 52],  # 取消 叉号
    "setting": [1011, 575, 1033, 599],  # 设置
    "add_plus": [750, 352, 771, 371],  # +号
    "use": [554, 435, 712, 465],  # 购买
}

# 好友
main_friend = {
    "邮箱": [16, 374, 87, 413],
    "一键领取": [418, 658, 523, 688],
    "使用": [1063, 564, 1141, 597],
    "使用多个": [663, 546, 695, 583],
    "识别区域": [118, 57, 559, 568],
    "寻路前往": [762, 630, 864, 661],
    "收起": [588, 312, 613, 384],
    "find_image": {
        "使用": ["main_friend/使用.png", (1009, 380, 1195, 626)],
        # "main_friend/使用1.png", 575, 515, 784, 619
        "使用多个": ["main_friend/使用1.png", (640, 416, 856, 610)],
        "确认": [],
        "使用1ge": ["main_friend/使用1ge.png", (502, 480, 826, 683)],
        "使用1个": ["main_friend/使用1个.png", (502, 480, 826, 683)]
    }
}

# 荣耀
main_honour = {
    "cancel": [1232, 10, 1259, 30],
    "click_locs": [
        (616, 296, 629, 308), (661, 493, 772, 537),
        (413, 422, 425, 438), (461, 286, 568, 326),
        (287, 552, 302, 565), (338, 413, 443, 453),
    ],
    "find_image": {
        "名人堂叉号": ["main_honour/名人堂_叉号.png", (1214, 0, 1268, 49)],
    },
}

# 福利
main_welfare = {
    "pos_find": [190, 93, 419, 644],
    "cancel": [1067, 65, 1099, 98],
    "签到": {
        "loc": [280, 118, 377, 154],
        "补签": [1014, 116, 1032, 139],
        "color": "#84CF00",
        "start_loc": (510, 210),
        "rect": (125, 115),
        "补签取消": [490, 413, 568, 448],
        "补签确认": [710, 418, 781, 444],
    },
    "月道增福": {
        "loc": [274, 281, 382, 318],  # 271, 283, 383, 321
        "领取": [988, 215, 1044, 241],
    },
    "神秘大礼": {
        "loc": [278, 528, 375, 562],
        "全部砸开": [710, 600, 825, 623],
    },
    "升级福利": {
        "loc": [281, 502, 375, 538],
        "slide": [296, 610, 296, 325, 0.9],
        "领取": [975, 173, 1031, 202],
        "确认": [706, 426, 788, 458],
    },
    "find_image": {
        "补签取消": ["main_welfare/补签取消.png", (414, 222, 876, 487)],
        "补签确认": ["main_welfare/补签确认.png", (414, 222, 876, 487)],
        "补签叉号": ["main_welfare/补签叉号.png", (414, 222, 876, 487)],
        "升级领取": ["main_welfare/升级_领取.png", (937, 156, 1079, 308)],
        "升级确认": ["main_welfare/升级_确认.png", (389, 213, 883, 494)],
        "月道领取": ["main_welfare/月道_领取.png", (960, 198, 1078, 318)],
    }
}

# 伏魔
second_shuadao = {
    "content": [799, 359, 1237, 461],  # 陆压真人对话信息
    "person": [962, 327, 1063, 354],  # 陆压真人
    "first": [941, 483, 1098, 519],  # 一阶 伏魔
    "second": [938, 554, 1103, 588],  # 二阶 伏魔
    "convenient_team": [954, 627, 1075, 661],  # 便捷组队
    "leave": [976, 485, 1048, 517],  # 离开
    # 非组队状态 自动匹配
    "not_team": {
        "auto_match": [951, 627, 1071, 665],  # 自动匹配
    },
    # 组队状态下 匹配
    "team": {
        "start_match": [723, 625, 848, 657],  # 开始匹配
        # 检查人数是否满 颜色 #DED7C6 表示该没有
        "colors": ["#DED7C6", "#DED7C6"],
        "locs": [(469, 484), (655, 479), (827, 483), (1017, 479)]
    },
    # 退出当前页面 再次点击刷道 前往 一阶伏魔
    "cancel": [1080, 26, 1109, 57],
    # 退出陆压真人对话页面
    "cancel_dialogue": [1225, 35, 1249, 58],
    # 取消 刷道令开关
    "cancel_token": [491, 428, 565, 456],
    # 确认 刷道令开关
    "confirm_token": [706, 425, 791, 455],
    # 老君查岗
    "code": {
        "loc": [563, 116, 716, 150],  # 老君查岗位置
        "count_time": [261, 588, 304, 616],  # 倒计时位置
        "A": [295, 525, 380, 555],
        "B": [495, 525, 580, 555],
        "C": [695, 525, 780, 555],
        "D": [895, 525, 980, 555],
    },
    # 找色
    "find_color": {
        "陆压真人": ["#BD494A", "-1|3|#BD4D52, -6|8|#BD4D52, 10|5|#A53C42, 0|30|#7B2829", 839, 9, 1219, 355],
        "老君查岗": ["#845129", "18|1|#EFE7DE, 24|1|#EFE7DE, 36|10|#7B4D29", 563, 116, 716, 150],
        "刷道令开关": ["#9C0C08", "2|9|#F7E7C6, 11|18|#EFE3BD, 9|24|#840C08", 822, 209, 879, 267],
    }
}

# 活动新
main_task = {
    "activity": {
        "all": [360, 87, 371, 97],  # 全部
        "experience": [505, 87, 520, 99],  # 经验
        "props_weapons": [647, 86, 660, 99],  # 道武
        "props": [789, 87, 800, 97],  # 道具
        "equipment": [927, 85, 939, 95],  # 装备
    },
    "location": {
        "check_loc": [343, 132, 1101, 502],
        # "check_loc": [341, 133, 1102, 465], # 检测区域
        "start_loc": [435, 150],  # 起始位置
        "rect": [130, 35],  # 宽高
        "width": 395,  # 跨度宽
        "height": 110,  # 跨度高
    },
    "find_image": {
        "提交": ["main_task/提交.png", (0, 0, 0, 0)],  # ["main_task/提交.png", (541, 524, 764, 611)],
        "变身卡提交": ["main_task/变身卡_提交.png", (422, 470, 874, 714)],
        "装备取消": ["main_task/装备提交_取消.png", (441, 374, 837, 460)],
        "装备确认": ["main_task/装备提交_确认.png", (441, 374, 837, 460)],
        "装备叉号": ["main_task/装备提交_叉号.png", (931, 67, 1025, 145)],
        "人物对话叉号": ["main_task/人物对话_叉号.png", (1192, 11, 1268, 78)],
        "帮派购买": ["main_task/帮派_购买.png", (856, 573, 1148, 714)],
    },
    "find_color": {
        # 帮派 药店 宠物商店 叉号
        "药店叉号": ["#940C08", "4|10|#941008, 5|17|#E7DFBD, 3|25|#C67D6B, 4|34|#840C08", 1041, 2, 1164, 89],
        "人物对话叉号": ["#C69A6B", "0|-7|#E7DFCE, 12|2|#BD9A6B, 9|7|#B59263", 1181, 6, 1271, 79],
        "双倍": ["#9C0808", "-1|10|#F7E7C6, 6|24|#840C08", 821, 225, 881, 279],
        "完成": ["#73AA94", "1|-1|#42866B, 2|-1|#39826B, 5|-1|#428263, 5|-2|#84A68C"],  # 坐标自己改写
        "跳过": ["#6B4D29", "22|-2|#735129, 44|-3|#735129", 1091, 51, 1244, 102],
    },
    "对话": {
        "name_loc": [948, 325, 1083, 354],
        "first_button": [910, 481, 1124, 517],
        "second_button": [889, 557, 1149, 587],
        "third_button": [893, 629, 1150, 658],
        "level": [901, 476, 1143, 524],  # 随机等级
        "叉号": [1225, 36, 1249, 60],
        "cancel": [483, 413, 572, 447],  # 取消双倍
        "confirm": [706, 418, 785, 442],  # 确认
        "answer1": [988, 485, 1042, 517],  # [840, 475, 1180, 520],  # 识别为空
        "answer2": [987, 552, 1041, 593],  # [840, 543, 1180, 595],
        "answer3": [991, 625, 1038, 664],  # [840, 620, 1180, 668],
    },
    "竞技使者": {
        "remain_times": [917, 82, 1091, 124],  # 剩余次数
        "battle_rank": ["#B5B6B5", "-1|2|#CECBC6, 2|12|#B5BAB5, 8|19|#E7C74A", 170, 147, 221, 189],  # 挑战页面标志
        "battle_boy": [255, 544, 328, 577],  # 挑战童子
        "battle_confirm": [703, 413, 787, 445],  # 确认
        "battle_auto": [1198, 664, 1250, 687],  # 自动战斗
        "color_cancel": ["#9C0C08", "5|5|#941008, -3|7|#EFE3BD, 5|16|#F7E7C6, 5|25|#840C08", 1062, 13, 1125, 73],
        # 退出叉号
        "cancel": [1078, 28, 1111, 56],
    },
    "北斗星使": {
        "color_cancel": ["#940C08", "-1|8|#941008, 0|21|#F7E7C6, -1|32|#840C08", 819, 154, 875, 228],  # 叉号
    },
    "帮派购买": [959, 634, 1052, 666],
    # "帮派购买药品": [911, 623, 1023, 656],
    "提交": [590, 579, 690, 590],  # 师门提交装备
    "变身卡提交": [582, 585, 702, 620],  # 师门变身卡提交
    "确认": [707, 415, 792, 445],  #
    "跳过": [1178, 59, 1242, 94],  # 1104, 58, 1249, 92
    "cancel": [1087, 31, 1112, 58],  # 任务栏叉号；取消
    "cancel_person": [1221, 35, 1251, 59],  # 任务对话叉号
    "活跃坐标": [(477, 635), (620, 635), (763, 635), (905, 635), (1049, 635)],
    "活跃使用": [1066, 562, 1141, 598],
}

difu = {
    "times": [1196, 556, 1244, 578],
    "使用": [1063, 563, 1140, 597],
    "引魂幡": [1193, 516, 1260, 538],
    "万能卡": [860, 626, 906, 680],
    "steps": {
        "1": [429, 370, 461, 411],
        "2": [510, 367, 544, 412],
        "3": [586, 371, 621, 408],
        "4": [664, 370, 695, 407],
        "5": [743, 370, 777, 411],
        "6": [820, 371, 851, 406],
    },
    "移行卡": [1054, 631, 1104, 679],
    "乌龟卡": [961, 628, 1004, 677],
    "退出": [1232, 21, 1258, 48],
    "跳过": [1172, 60, 1238, 87],
    "点此继续": [589, 600, 689, 619],
    "自动战斗": [1197, 663, 1248, 689],
    "贪吃叉号": [1237, 5, 1269, 35],
    "嗜茶返回": [32, 26, 93, 48],
    "拼图叉号": [1070, 44, 1105, 74],
    "确认": [711, 411, 782, 445],
    "find_color": {
        "跳过": ["#735129", "22|0|#735129, 40|0|#735129", 1107, 55, 1255, 104],
        "人物对话叉号": ["#C69A6B", "14|11|#AD8A5A, 18|12|#AD8A5A", 1205, 19, 1263, 72],
        "黄衣女": ["#DEBE52", "1|8|#D6BA52, -20|23|#D6BA5A, 10|14|#9C6D21", 9, 343, 353, 709],
        "红衣女": ["#EFB694", "-6|17|#E7AE94, 12|11|#A54942, 29|7|#843429", 4, 373, 278, 711],
        "赌鬼": ["#21AADE", "15|29|#84FFFF, 23|42|#52D3EF", 11, 330, 464, 717],
        "嗜茶鬼": ["#4A5542", "12|-7|#425139, 31|27|#7B3821, 8|32|#392C18", 10, 357, 306, 710],
        "杨镖头": ["#31557B", "5|20|#315173, 1|27|#294D73, 13|29|#214163", 1, 285, 342, 719],
        "牛头": ["#733842", "-20|21|#844142, 19|47|#632C39, 29|69|#522431", 25, 279, 332, 718],
        "冰火": ["#8C694A", "-9|-8|#9C7D52, 8|-11|#845D39, 1|-4|#94754A", 1211, 1, 1279, 56],
        "冥界宝盒": ["#314542", "0|12|#396D52, 3|25|#213429", 430, 121, 892, 470],
        "点此继续": ["#DECB9C", "0|-4|#FFE7B5, 5|-4|#C6B28C", 0, 0, 0, 0],
    },
    "find_image": {
        "点此继续": ["task_yinhun/点此继续.png", (542, 551, 750, 679)],
    },
    "对话": {
        "first_button": [959, 484, 1080, 517],
        "second_button": [934, 554, 1092, 591],
        "叉号": [1221, 33, 1248, 59],
    },
}

battle_setting = {
    "enemy_loc": {
        # 敌人位置
        "011": [501, 137, 570, 204],  # 504, 101, 578, 159
        "012": [601, 209, 646, 254],
        "021": [422, 206, 468, 253],
        "022": [511, 263, 558, 311],
        "031": [332, 267, 379, 315],  # 中间位置 317, 250, 388, 303
        "032": [421, 319, 466, 363],
        "041": [243, 321, 288, 368],
        "042": [332, 375, 376, 424],
        "051": [152, 375, 197, 421],
        "052": [244, 433, 285, 479],
        # 队友位置
        "111": [956, 273, 1015, 324],
        "112": [1052, 326, 1105, 374],
        "121": [866, 330, 924, 377],
        "122": [959, 377, 1017, 432],
        "131": [770, 392, 833, 445],  # 宠物位置 中间
        "132": [869, 435, 926, 489],  # 人物位置
        "141": [680, 447, 739, 498],
        "142": [779, 495, 841, 548],
        "151": [597, 500, 657, 552],
        "152": [688, 549, 750, 603],
    },
    "find_color": {
        "确认": ["#9CD3C6", "-6|9|#84C3AD, -4|22|#7BB694", 643, 380, 872, 472],
    },
    "find_image": {
        "法术": ["battle/法术.png", (1189, 454, 1263, 498)],
        "道具": ["battle/道具.png", (1179, 549, 1267, 601)],
        "自动": ["battle/自动.png", (1181, 635, 1275, 704)],
        "取消自动": ["battle/取消自动.png", (1172, 614, 1266, 697)],
        "防御": ["battle/防御.png", (599, 20, 1290, 716)],
        # 678, 610, 1167, 706
        "召唤": ["battle/召唤.png", (678, 610, 1167, 706)],
        "召回": ["battle/召回.png", (678, 610, 1167, 706)],
        "捕捉": ["battle/捕捉.png", (678, 610, 1167, 706)],
        "逃跑": ["battle/逃跑.png", (678, 610, 1167, 706)],
        # 797, 89, 1249, 591
        "辅助一阶": ["battle/辅助一阶.png", (599, 20, 1270, 716)],
        "辅助二阶": ["battle/辅助二阶.png", (599, 20, 1270, 716)],
        "辅助三阶": ["battle/辅助三阶.png", (599, 20, 1270, 716)],
        "辅助四阶": ["battle/辅助四阶.png", (599, 20, 1270, 716)],
        "障碍一阶": ["battle/障碍一阶.png", (599, 20, 1270, 716)],
        "障碍二阶": ["battle/障碍二阶.png", (599, 20, 1270, 716)],
        "障碍三阶": ["battle/障碍三阶.png", (599, 20, 1270, 716)],
        "障碍四阶": ["battle/障碍四阶.png", (599, 20, 1270, 716)],
        "法攻一阶": ["battle/法攻一阶.png", (599, 20, 1270, 716)],
        "法攻二阶": ["battle/法攻二阶.png", (599, 20, 1270, 716)],
        "法攻三阶": ["battle/法攻三阶.png", (599, 20, 1270, 716)],
        "法攻四阶": ["battle/法攻四阶.png", (599, 20, 1270, 716)],
        "力破千军": ["battle/力破千军.png", (599, 20, 1270, 716)],
        "组合技能": ["battle/组合技能.png", (599, 20, 1270, 716)],
    },
    "道具": [1200, 559, 1244, 593],
    "法术": [1198, 461, 1244, 494],
    "自动": [1197, 663, 1248, 692],
    "取消自动": [1197, 663, 1248, 692],
    "防御": [1097, 661, 1147, 691],
    # 678, 610, 1167, 706
    "召唤": [998, 664, 1050, 692],
    "召回": [897, 663, 952, 693],
    "捕捉": [798, 666, 853, 693],
    "逃跑": [698, 665, 754, 693],
    "逃跑确认": [687, 409, 811, 447],
}

bangpai_daily = {
    "挑战使者": {
        "诗句": [160, 580, 276, 606],
        "loc": [
            (516, 222, 548, 251),  # 11
            (428, 280, 457, 308),  # 21
            (248, 393, 279, 420),  # 41
            (156, 449, 188, 477),  # 51
            (607, 278, 638, 309),  # 12
            (518, 335, 548, 365),  # 22
            (426, 390, 459, 421),  # 32
            (336, 448, 367, 476),  # 42
            (246, 504, 277, 533),  # 52
        ],
    },
    "find_color": {
        "确认": ["#9CD3C6", "-6|9|#84C3AD, -4|22|#7BB694", 643, 380, 872, 472],
    },
    "find_image": {
        "红衣女": ["main_bangpai/红衣女.png", (130, 100, 675, 523)],
        "蓝衣女": ["main_bangpai/蓝衣女.png", (130, 100, 675, 523)],
        "日常陪练蓝": ["main_bangpai/帮派_日常陪练1.png", (130, 100, 675, 523)],  # 蓝
        "日常陪练红": ["main_bangpai/帮派_日常陪练2.png", (130, 100, 675, 523)],  # 红
    },
}

right_task = {
    "location": {
        "start_loc": [205, 95],  # 起始位置
        "rect": [230, 30],  # 宽高
        "width": 0,  # 跨度宽
        "height": 92,  # 跨度高
    },
    "ocr_loc": [178, 73, 463, 674],  # 找字范围
    "前往": [973, 637, 1066, 673],
    "放弃": [763, 638, 853, 673],
    "叉号": [1074, 27, 1114, 60],
    "确认": [705, 408, 791, 449],
}

